<template>
  <div class="page-container">
    <!-- 主要内容 -->
    <div class="content-card">
      <!-- 开发中图标 -->
      <div class="development-icon">
        <div class="pulse-circle"></div>
        <div class="icon-container">
          <i class="fa fa-code-fork"></i>
        </div>
      </div>

      <!-- 标题和描述 -->
      <h1 class="main-title">功能开发中</h1>
      <p class="description">我们正在努力开发这个功能，敬请期待！</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "UnderDevelopment",
  data() {
    return {
      progress: 65 // 开发进度百分比
    };
  },
  mounted() {
    // 模拟进度增长动画
    const interval = setInterval(() => {
      if (this.progress < 95) {
        this.progress += Math.random() * 2;
      } else {
        clearInterval(interval);
      }
    }, 3000);
  }
};
</script>

<style lang="scss" scoped>
$primary-color: #2563eb; // 蓝色主色调
$primary-light: #eff6ff; // 浅蓝色背景
$gray-lightest: #f9fafb; // 最浅灰色
$gray-lighter: #f3f4f6; // 较浅灰色
$gray-medium: #9ca3af; // 中等灰色
$gray-dark: #1f2937; // 深灰色
$shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
$shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
$shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
$transition-normal: all 0.3s ease;

.page-container {
  min-height: calc(100vh - 84px);
  background: linear-gradient(135deg, $gray-lightest, $gray-lighter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  box-shadow: $shadow-sm;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: $primary-color;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  color: $gray-dark;
}

.back-button {
  background: $primary-color;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: $transition-normal;
  display: flex;
  align-items: center;
  font-size: 14px;

  &:hover {
    background: darken($primary-color, 10%);
  }
}

.content-card {
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: $shadow;
  padding: 32px;
  text-align: center;
  transition: $transition-normal;
  margin-top: 80px;

  &:hover {
    box-shadow: $shadow-lg;
  }
}

.development-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  position: relative;
}

.pulse-circle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: lighten($primary-color, 30%);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.icon-container {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    font-size: 48px;
    color: $primary-color;
  }
}

.main-title {
  font-size: 36px;
  font-weight: 700;
  color: $gray-dark;
  margin: 0 0 16px;
}

.description {
  font-size: 18px;
  color: $gray-medium;
  margin: 0 0 32px;
}

.progress-container {
  margin: 0 0 32px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: $gray-medium;
  margin: 0 0 8px;
}

.progress-bar-outer {
  width: 100%;
  background: $gray-lighter;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-inner {
  background: $primary-color;
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-out;
}

.deadline-container {
  background: $primary-light;
  border: 1px solid lighten($primary-color, 20%);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 32px;
}

.deadline-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.deadline-content i {
  color: $primary-color;
  margin: 4px 12px 0 0;
  font-size: 20px;
}

.deadline-text {
  text-align: left;
}

.deadline-title {
  font-weight: 600;
  color: $gray-dark;
  margin: 0 0 4px;
}

.deadline-date {
  color: $gray-medium;
  margin: 0;
}

.notification-section {
  margin: 0 0 32px;
}

.notification-text {
  color: $gray-dark;
  margin: 0 0 16px;
  font-size: 16px;
}

.notify-button {
  background: white;
  color: $primary-color;
  border: 1px solid $primary-color;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: $transition-normal;
  font-size: 16px;

  &:hover {
    background: $primary-light;
  }
}

.team-info {
  margin: 32px 0 0;
}

.team-text {
  color: $gray-medium;
  margin: 0 0 16px;
  font-size: 14px;
}

.team-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: $gray-lighter;
  border: 2px solid white;
}

.more-avatars {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: $primary-light;
  color: $primary-color;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

// 动画定义
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  70% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}
</style>
